package com.Change_BUG.entity;

/**
 * 商品表
 */
public class product {

    /**
     * 商品编号
     */
    private Integer id;
    /**
     * 商品名称
     */
    private String name;
    /**
     * 商品价格
     */
    private Double price;
    /**
     * 是否上架,0未上架,1已上架
     */
    private Integer isup;
    /**
     * 类别编号
     */
    private Integer categroyid;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getIsup() {
        return isup;
    }

    public void setIsup(Integer isup) {
        this.isup = isup;
    }

    public Integer getCategroyid() {
        return categroyid;
    }

    public void setCategroyid(Integer categroyid) {
        this.categroyid = categroyid;
    }

    public product(String name, Double price, Integer isup, Integer categroyid) {
        this.name = name;
        this.price = price;
        this.isup = isup;
        this.categroyid = categroyid;
    }

    public product(Integer id, String name, Double price, Integer isup, Integer categroyid) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.isup = isup;
        this.categroyid = categroyid;
    }

    public product() {

    }

    @Override
    public String toString() {
        return "product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", isup=" + isup +
                ", categroyid=" + categroyid +
                '}';
    }

}
